<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8" />
    <title>parseInt转换</title>
    <script>
        console.log(parseInt("123"));
        console.log(parseInt("123powernode"));
        console.log(parseInt("123powernode456"));
        console.log(parseInt(" 123 "));
        console.log(parseInt("sdsdsd123 "));  // NaN
    </script>
</head>
    
<body>
</body>